//
//  CAEmitterViewController.m
//  CAEmitter粒子
//
//  Created by student on 16/3/19.
//  Copyright © 2016年 niit. All rights reserved.
//

#import "CAEmitterViewController.h"

@interface CAEmitterViewController ()

@end

@implementation CAEmitterViewController
-(id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if(self)
    {
        
    }
    return self;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor blackColor];
    
    FireworksView *fireWorks = [[FireworksView alloc]initWithFrame:self.view.bounds
    ];
    fireWorks.autoresizingMask = UIViewAutoresizingFlexibleTopMargin|UIViewAutoresizingFlexibleWidth;
    fireWorks.backgroundColor = [UIColor blackColor];
    
    [self.view addSubview:fireWorks];
    
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(fireworksTapped:)];
    [fireWorks addGestureRecognizer:tap];
}
-(void)fireworksTapped:(UITapGestureRecognizer *)tap
{
    
}
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
{
    return YES;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
